Optimal. Leaf size=214 \[ -\frac {(A-B+C) \sin (c+d x)}{d \sec ^{\frac {3}{2}}(c+d x) (a \sec (c+d x)+a)}+\frac {(7 A-5 B+5 C) \sin (c+d x)}{5 a d \sec ^{\frac {3}{2}}(c+d x)}-\frac {(5 A-5 B+3 C) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)}}-\frac {(5 A-5 B+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a d}+\frac {3 (7 A-5 B+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.25, antiderivative size = 214, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {4084, 3787, 3769, 3771, 2639, 2641} \[ -\frac {(A-B+C) \sin (c+d x)}{d \sec ^{\frac {3}{2}}(c+d x) (a \sec (c+d x)+a)}+\frac {(7 A-5 B+5 C) \sin (c+d x)}{5 a d \sec ^{\frac {3}{2}}(c+d x)}-\frac {(5 A-5 B+3 C) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)}}-\frac {(5 A-5 B+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a d}+\frac {3 (7 A-5 B+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3769
Rule 3771
Rule 3787
Rule 4084
Rubi steps
\begin {align*} \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))} \, dx &=-\frac {(A-B+C) \sin (c+d x)}{d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))}+\frac {\int \frac {\frac {1}{2} a (7 A-5 B+5 C)-\frac {1}{2} a (5 A-5 B+3 C) \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx}{a^2}\\ &=-\frac {(A-B+C) \sin (c+d x)}{d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))}-\frac {(5 A-5 B+3 C) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{2 a}+\frac {(7 A-5 B+5 C) \int \frac {1}{\sec ^{\frac {5}{2}}(c+d x)} \, dx}{2 a}\\ &=\frac {(7 A-5 B+5 C) \sin (c+d x)}{5 a d \sec ^{\frac {3}{2}}(c+d x)}-\frac {(5 A-5 B+3 C) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)}}-\frac {(A-B+C) \sin (c+d x)}{d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))}-\frac {(5 A-5 B+3 C) \int \sqrt {\sec (c+d x)} \, dx}{6 a}+\frac {(3 (7 A-5 B+5 C)) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx}{10 a}\\ &=\frac {(7 A-5 B+5 C) \sin (c+d x)}{5 a d \sec ^{\frac {3}{2}}(c+d x)}-\frac {(5 A-5 B+3 C) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)}}-\frac {(A-B+C) \sin (c+d x)}{d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))}-\frac {\left ((5 A-5 B+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{6 a}+\frac {\left (3 (7 A-5 B+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{10 a}\\ &=\frac {3 (7 A-5 B+5 C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 a d}-\frac {(5 A-5 B+3 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 a d}+\frac {(7 A-5 B+5 C) \sin (c+d x)}{5 a d \sec ^{\frac {3}{2}}(c+d x)}-\frac {(5 A-5 B+3 C) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)}}-\frac {(A-B+C) \sin (c+d x)}{d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.79, size = 1350, normalized size = 6.31 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt {\sec \left (d x + c\right )}}{a \sec \left (d x + c\right )^{4} + a \sec \left (d x + c\right )^{3}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A}{{\left (a \sec \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 5.04, size = 320, normalized size = 1.50 \[ -\frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \left (25 A \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+63 A \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-25 B \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-45 B \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+15 C \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+45 C \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )+48 A \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-56 A -40 B \right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-30 A +90 B -30 C \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (23 A -35 B +15 C \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{15 a \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A}{{\left (a \sec \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {A}{\sec ^{\frac {7}{2}}{\left (c + d x \right )} + \sec ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx + \int \frac {B \sec {\left (c + d x \right )}}{\sec ^{\frac {7}{2}}{\left (c + d x \right )} + \sec ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx + \int \frac {C \sec ^{2}{\left (c + d x \right )}}{\sec ^{\frac {7}{2}}{\left (c + d x \right )} + \sec ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________